<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>

<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo2"
	cellspacing="1">
    <col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title}${param.unit }</td>
		
	</tr>
	<tr  class="li_2">
		<td rowspan="4" align="right"><span class="color_red">*</span>总人数
		</td>
		<td rowspan="4">
			<input  id="prototalpeple" name="proposal/prototalpeple" label="${param.title}-->总人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/prototalpeple" />"/> 
			<input  id="psn_total_dengji" name="proposal/psn_total_dengji" label="${param.title}-->高级、中级、初级、其他之和"  type="hidden" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css valueEqual:prototalpeple:psn_total_dengji"  value="<x:out select="$xmlData/data/proposal/psn_total_dengji" />"/> 
			<input  id="psn_total_xueli" name="proposal/psn_total_xueli" label="${param.title}-->博士、硕士、学士、其他之和"  type="hidden" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css valueEqual:prototalpeple:psn_total_xueli"  value="<x:out select="$xmlData/data/proposal/psn_total_xueli" />"/> 
		</td>
		<td align="center"><span class="color_red">*</span>高级
		</td>
		<td align="center"><span class="color_red">*</span>中级
		</td>
		<td align="center"><span class="color_red">*</span>初级
		</td>
		<td align="center"><span class="color_red">*</span>其他
		</td>
	</tr>
	<tr  class="li_1">
		<td align="center">
			<input id="propepleh" onchange="countFundInt('','propepleh,propeplem,propeplel,propepleq','psn_total_dengji');" name="proposal/propepleh" label="${param.title}-->高级职称人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propepleh" />"/> 
		</td>
		<td align="center">
			<input id="propeplem" onchange="countFundInt('','propepleh,propeplem,propeplel,propepleq','psn_total_dengji');" name="proposal/propeplem" label="${param.title}-->中级职称人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propeplem" />"/> 
		</td>
		<td align="center">
			<input id="propeplel" onchange="countFundInt('','propepleh,propeplem,propeplel,propepleq','psn_total_dengji');" name="proposal/propeplel" label="${param.title}-->初级职称人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propeplel" />"/> 
		</td>
		<td align="center">
			<input id="propepleq" onchange="countFundInt('','propepleh,propeplem,propeplel,propepleq','psn_total_dengji');" name="proposal/propepleq" label="${param.title}-->其他职称的人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propepleq" />"/> 
		</td>
	</tr>
	<tr  class="li_2">
		<td align="center"><span class="color_red">*</span>博士
		</td>
		<td align="center"><span class="color_red">*</span>硕士
		</td>
		<td align="center"><span class="color_red">*</span>学士
		</td>
		<td align="center"><span class="color_red">*</span>其他
		</td>
	</tr>
	<tr  class="li_1">
		<td align="center">
			<input id="propeplebs" onchange="countFundInt('','propeplebs,propepless,propeplexs,propepleqt','psn_total_xueli');" name="proposal/propeplebs" label="${param.title}-->博士人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propeplebs" />"/> 
		</td >
		<td  align="center">
			<input id="propepless" onchange="countFundInt('','propeplebs,propepless,propeplexs,propepleqt','psn_total_xueli');" name="proposal/propepless" label="${param.title}-->硕士人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propepless" />"/> 
		</td >
		<td align="center">
			<input id="propeplexs" onchange="countFundInt('','propeplebs,propepless,propeplexs,propepleqt','psn_total_xueli');" name="proposal/propeplexs" label="${param.title}-->学士人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propeplexs" />"/> 
		</td>
		<td align="center">
			<input id="propepleqt" onchange="countFundInt('','propeplebs,propepless,propeplexs,propepleqt','psn_total_xueli');" name="proposal/propepleqt" label="${param.title}-->其他学位的人数" type="text" required class="input_css required" style="width: 70%;text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" value="<x:out select="$xmlData/data/proposal/propepleqt" />"/> 
		</td>
	</tr>
</table> 
	<br/>
<script type="text/javascript">
function countFundInt(idStart, countStr, totalStr) {
	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = 0;
		count = parseInt(count) + parseInt(fund);
	}
	//add by cg 扩展：对于多个输入框所求得的和，同时赋给某几个文本框
	var totalStrArr = totalStr.split(",");
	var totalId;
	for(var i = 0;i < totalStrArr.length; i++ ) {
		totalId = totalStrArr[i];
	$("#" + idStart + totalId).val(count);
	}
}
</script>